package net.zjitc.mapper;

import net.zjitc.pojo.OrderItem;
import net.zjitc.pojo.Orders;
import net.zjitc.pojo.OrdersCondition;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Author admin
 * @Date 2019/4/9 8:20
 */
public interface OrdersMapper {
    List<Orders> findAll();

    Orders findOrderById(String id);
    List<OrderItem> findOrderItemById(String id);

    List<Orders> findOrdersByDate(@Param("year") String year,
                                  @Param("month") String month);

    List<OrderItem> findItemByOrdersid(@Param("orders") List<Orders> orders);

    List<Orders> searchByOrdersCondition(OrdersCondition ordersCondition);

    List<Orders> findNewThreeProductsId();

}
